package com.lc.recovery.ui.activity;

import android.os.Bundle;
import android.widget.ImageView;

import com.lc.recovery.R;
import com.lc.recovery.app.AppActivity;
import com.lc.recovery.http.glide.GlideApp;

import butterknife.BindView;
import butterknife.ButterKnife;

public class VipCodeActivity extends AppActivity {
    @BindView(R.id.img_code)
    ImageView imgCode;
    private String code_url;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_vipcode;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
        code_url = getIntent().getStringExtra("code_url");
        GlideApp.with(getActivity())
                .load(code_url)
                .placeholder(R.mipmap.avatar_placeholder_ic)
                .error(R.mipmap.avatar_placeholder_ic)

                .into(imgCode);
    }
}
